<style>
    .container{
        padding-bottom: 100px;
    }
    .bottom_wrap {
        box-sizing: border-box;
        font-size: 16px;
        word-wrap: break-word;
        background: #fff;
        line-height: 50px;
        width: 100%;
        z-index: 10;
        overflow: hidden;
        position: fixed;
        bottom: 0;
        border-top: 1px solid #e1e1e1;
    }
    @media screen and (min-width: 1025px){
        .bottom_wrap {
            max-width: 740px;
            margin: auto;
            background-color: #fff;
            margin-left: -20px;
        }
    }
    .bottom_wrap div {
        width: 50%;
        float: left;
        text-align: center;
        color: #999;
        border-right: 1px solid #e1e1e1;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    .bottom_wrap button {
        background: #0464d4;
        color: #fff;
        border: 1px solid #025ab3;
        border-radius: 4px;
        width: 85%;
        line-height: 35px;
    }
    .bottom_wrap{
        cursor: pointer;
    }
    .bottom_wrap .active{
        background: #4467b5;
        color: white;
    }
</style>
<div class="bottom_wrap">
    <div class="<eq name="nav" value="2">active</eq>" data-type="button"  data-url="{:U('Record/add')}">我要上传</div>
    <div class="<eq name="nav" value="3">active</eq>" data-type="button" data-url="{:U('Record/index',['user'=>1])}">我的记录</div>
</div>
<script>
    $(function(){
        $("[data-type='button']").on('click',function(){
            var $this = $(this), $url = $this.data("url");
            console.log('点击');
            console.log($url);
            if ( $url && !$this.hasClass('active') ){
                window.location.href = $url;
            }
        });
    });
</script>